package com.codeduck.intercepter.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2021-12-25
 */
@RestController
@Slf4j
public class IndexController {

    @RequestMapping("/hello")
    public String hello() {
        log.info("[{}] 执行 {} 方法！", this.getClass().getSimpleName(), "hello");
        return "Hello!";
    }
}
